home *** CD-ROM | disk | FTP | other *** search
/ Amiga Collections: Various / DevDisk 65 (1989)(DevWare PD).zip / DevDisk 65 (1989)(DevWare PD).adf / prosuite / xtext.i < prev    next >
Text File  |  1990-07-11  |  3KB  |  122 lines

  1.  
  2.     IFND    XTEXT_I
  3. XTEXT_I    EQU    1
  4.  
  5. * **************************************************************************
  6. *
  7. * XText Routines
  8. *     from Book 1 of the Amiga Programmers' Suite by RJ Mical
  9. *
  10. * Copyright (C) 1986, 1987, Robert J. Mical
  11. * All Rights Reserved.
  12. *
  13. * Created for Amiga developers.
  14. * Any or all of this code can be used in any program as long as this
  15. * entire notice is retained, ok?  Thanks.
  16. *
  17. * The Amiga Programmer's Suite Book 1 is copyrighted but freely distributable.
  18. * All copyright notices and all file headers must be retained intact.
  19. * The Amiga Programmer's Suite Book 1 may be compiled and assembled, and the 
  20. * resultant object code may be included in any software product.  However, no 
  21. * portion of the source listings or documentation of the Amiga Programmer's 
  22. * Suite Book 1 may be distributed or sold for profit or in a for-profit 
  23. * product without the written authorization of the author, RJ Mical.
  24. * HISTORY      NAME            DESCRIPTION
  25. * -----------  --------------  --------------------------------------------
  26. * 26 Jan 86    RJ Mical        Created this file (on my birthday!)
  27. * March 86     RJ              Incorporated this code in Sidecar
  28. * 27 Oct 86    RJ              Add XText buffer stuff, prepare for release
  29. *
  30. * *********************************************************************** *
  31.  
  32.  
  33. * AZTEC    EQU    1
  34.  
  35.  
  36.  
  37.     INCLUDE    "exec/types.i"
  38.     INCLUDE "graphics/gfx.i"
  39.     INCLUDE "intuition/intuition.i"
  40.     INCLUDE "hardware/custom.i"
  41.  
  42.     IFND    AZTEC ; If AZTEC not defined, do it the standard way
  43.     INCLUDE "asmsupp.i"
  44.     ENDC
  45.     IFD    AZTEC ; If AZTEC defined, do it the non-standard way (sigh)
  46.     INCLUDE "assmsupp.i"
  47.     ENDC
  48.  
  49.  
  50.  
  51. * === System Macros ===================================================== */
  52.                
  53. INFOLEVEL    EQU    100
  54.  
  55. LINKGFX MACRO    
  56.     LINKSYS \1,_GfxBase    
  57.     ENDM
  58.  
  59. LINKINT MACRO
  60.     LINKSYS \1,_IntuitionBase
  61.     ENDM
  62.  
  63.  
  64. * === System Definitions ================================================= */
  65.  
  66.     XLIB    BltBitMapRastPort
  67.     XLIB    BltMaskBitMapRastPort
  68.     XLIB    Debug
  69.     XLIB    DisownBlitter
  70.     XLIB    Move
  71.     XLIB    OwnBlitter
  72.     XLIB    RectFill
  73.     XLIB    SetAPen
  74.     XLIB    SetBPen
  75.     XLIB    SetDrMd
  76.     XLIB    Text
  77.     XLIB    WaitBlit
  78.  
  79.  
  80. * === XText Support Structure ===========================================
  81.  STRUCTURE XTextSupport,0
  82.     BYTE    xt_FrontPen
  83.     BYTE    xt_BackPen
  84.     BYTE    xt_DrawMode
  85.  
  86.     BYTE    xt_MaxTextWidth
  87.  
  88.     SHORT    xt_CharHeight
  89.     SHORT    xt_Flags
  90.  
  91.     APTR    xt_NormalTextPlane
  92.     APTR    xt_InverseTextPlane
  93.     APTR    xt_AllClearPlane
  94.     APTR    xt_AllSetPlane
  95.  
  96.     APTR    xt_XTextKey
  97.  
  98.     APTR    xt_OutputRPort
  99.  
  100.     SHORT   xt_FontSelect
  101.     STRUCT    xt_FontData,(8*4)
  102.  
  103.     STRUCT    xt_TextBitMap,bm_SIZEOF
  104.  
  105.     LABEL    xt_SIZEOF
  106.  
  107.  
  108. * === XTextSupport Flags Definitions ===
  109. SLIM_XTEXT    EQU    $0001
  110.  
  111.  
  112.  
  113.  
  114. * === ===================================================================
  115. XTEXT_CHARWIDTH        EQU    8
  116.  
  117.  
  118.     ENDC        ; of XTEXT_I
  119.  
  120.  
  121.